-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move images to assets directory #1506
base: dev
Are you sure you want to change the base?
Conversation
@@ -175,9 +176,11 @@ function print() { | |||
.map((el) => el.outerHTML) | |||
.join(""); | |||
|
|||
const logoImage = loadImage(logoUrl.value!); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove !
@@ -0,0 +1,11 @@ | |||
export function loadImage(fileName: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fileName?: string
return new URL(`/client-app/assets/icons/basic/${name}.svg`, import.meta.url).href ?? ""; | ||
} | ||
|
||
export function isFilenameOnly(src: string): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unit test
} | ||
|
||
export function loadIcon(name?: string): string { | ||
return new URL(`/client-app/assets/icons/basic/${name}.svg`, import.meta.url).href ?? ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dependent from client-app.
add task to make it init phase settings. or move all images to ui kit folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quality Gate passedIssues Measures |
Description
References
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-2041
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.12.0-pr-1506-9710-9710ab91.zip